package com.emaimed.search.pojo;

import java.io.Serializable;
import java.util.Date;

public class EmaimedSms implements Serializable {
    private Integer id;

    private String label;

    private String sendNumber;

    private String receiveNumber;

    private String content;

    private Date time;

    private String condition1;

    private String condition2;

    private String condition3;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public String getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(String sendNumber) {
        this.sendNumber = sendNumber == null ? null : sendNumber.trim();
    }

    public String getReceiveNumber() {
        return receiveNumber;
    }

    public void setReceiveNumber(String receiveNumber) {
        this.receiveNumber = receiveNumber == null ? null : receiveNumber.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getCondition1() {
        return condition1;
    }

    public void setCondition1(String condition1) {
        this.condition1 = condition1 == null ? null : condition1.trim();
    }

    public String getCondition2() {
        return condition2;
    }

    public void setCondition2(String condition2) {
        this.condition2 = condition2 == null ? null : condition2.trim();
    }

    public String getCondition3() {
        return condition3;
    }

    public void setCondition3(String condition3) {
        this.condition3 = condition3 == null ? null : condition3.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EmaimedSms other = (EmaimedSms) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLabel() == null ? other.getLabel() == null : this.getLabel().equals(other.getLabel()))
            && (this.getSendNumber() == null ? other.getSendNumber() == null : this.getSendNumber().equals(other.getSendNumber()))
            && (this.getReceiveNumber() == null ? other.getReceiveNumber() == null : this.getReceiveNumber().equals(other.getReceiveNumber()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getCondition1() == null ? other.getCondition1() == null : this.getCondition1().equals(other.getCondition1()))
            && (this.getCondition2() == null ? other.getCondition2() == null : this.getCondition2().equals(other.getCondition2()))
            && (this.getCondition3() == null ? other.getCondition3() == null : this.getCondition3().equals(other.getCondition3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLabel() == null) ? 0 : getLabel().hashCode());
        result = prime * result + ((getSendNumber() == null) ? 0 : getSendNumber().hashCode());
        result = prime * result + ((getReceiveNumber() == null) ? 0 : getReceiveNumber().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getCondition1() == null) ? 0 : getCondition1().hashCode());
        result = prime * result + ((getCondition2() == null) ? 0 : getCondition2().hashCode());
        result = prime * result + ((getCondition3() == null) ? 0 : getCondition3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", label=").append(label);
        sb.append(", sendNumber=").append(sendNumber);
        sb.append(", receiveNumber=").append(receiveNumber);
        sb.append(", content=").append(content);
        sb.append(", time=").append(time);
        sb.append(", condition1=").append(condition1);
        sb.append(", condition2=").append(condition2);
        sb.append(", condition3=").append(condition3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}